val innerFormat = Format.of[{{parent}}]

Format(
  innerFormat.map(inner => {{classname}}(inner)),
  {{classVarName}} => innerFormat.writes({{classVarName}}.{{#isArrayModel}}items{{/isArrayModel}}{{#isMapModel}}additionalProperties{{/isMapModel}}
)